package com.gz.moreaseManager.modules.service.impl;

import com.gz.moreaseManager.modules.entity.ProductTag;
import com.gz.moreaseManager.modules.mapper.ProductTagMapper;
import com.gz.moreaseManager.modules.service.IProductTagService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 产品标签表 服务实现类
 * </p>
 *
 * @author wike
 * @since 2019-02-26
 */
@Service
public class ProductTagServiceImpl extends ServiceImpl<ProductTagMapper, ProductTag> implements IProductTagService {


    @Resource
    private ProductTagMapper productTagMapper;

    @Override
    public ProductTag getRandomTag() {
        return productTagMapper.selectRandomProductTag();

    }
}
